import Vue from 'vue'
Vue.directive('noClick', {
    inserted(el, binding) {
      el.addEventListener('click', e => {
        el.classList.add('is-disabled');
        el.disabled = true;
        setTimeout(() => {
          el.disabled = false;
          el.classList.remove('is-disabled');
        }, binding.value || 1000)
      })
    }
  });

